package com.swak.frame.excel.bo;

import java.util.List;
import java.util.Map;

import org.apache.commons.lang3.StringUtils;
import org.apache.commons.lang3.builder.ReflectionToStringBuilder;


public class SheetObject {


    private String sheetName;

    private List<RowObject> sheetData;

    private Map<String, String> header;

    public String getSheetName() {
        if (StringUtils.isEmpty(sheetName)) {
            this.sheetName = "Sheet1";
        }
        return sheetName;
    }

    public void setSheetName(String sheetName) {
        this.sheetName = sheetName;
    }


    public List<RowObject> getSheetData() {
        return sheetData;
    }

    public void setSheetData(List<RowObject> sheetData) {
        this.sheetData = sheetData;
    }

    public Map<String, String> getHeader() {
        return header;
    }

    public void setHeader(Map<String, String> header) {
        this.header = header;
    }

    @Override
    public String toString() {
        return ReflectionToStringBuilder.toString(this);
    }
}
